package com.setup.trac.pojo.condition;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;

import com.setup.trac.util.SQLCondition;

public class FindUtenteByUsername implements SQLCondition {

	private String username;
	
	public FindUtenteByUsername(String username) {
		this.username = username;
	}

	public Criterion create(Object... params) {
		Criterion c = Restrictions.eq("username", this.username);
		return c;
	}

}
